package PTA.Pta_ch02;
import java.util.Scanner;
public class ex20 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        float a=sc.nextFloat();
        float b= sc.nextFloat();
        double x,y;
        x=a*a;
        y=b*b;
        System.out.printf("%.6f",+(x+y));
    }
}
